package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采集任务对象 gather_task
 * 
 * @author ruoyi
 * @date 2023-11-06
 */
public class GatherTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 事件编号 */
    private Long id;

    /** 生成日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生成日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** YQ名称 */
    @Excel(name = "YQ名称")
    private String title;

    /** 查询区域 */
    @Excel(name = "查询区域")
    private String searchArea;

    /** 关键字 */
    @Excel(name = "关键字")
    private String relatedWords;

    /** 舆情词 */
    @Excel(name = "舆情词")
    private String opinionWords;

    /** 排除词 */
    @Excel(name = "排除词")
    private String exclusionWords;

    /** 来源类型 */
    @Excel(name = "来源类型")
    private String sourceType;

    /** 来源id */
    @Excel(name = "来源id")
    private Long sourceId;

    /** 状态0未开始,1已完成,-1失败  */
    @Excel(name = "状态0未开始,1已完成,-1失败 ")
    private Integer status;

    @Excel(name = "成功数量 ")
    private Integer success;

    @Excel(name = "总数 ")
    private Integer total;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setSearchArea(String searchArea) 
    {
        this.searchArea = searchArea;
    }

    public String getSearchArea() 
    {
        return searchArea;
    }
    public void setRelatedWords(String relatedWords) 
    {
        this.relatedWords = relatedWords;
    }

    public String getRelatedWords() 
    {
        return relatedWords;
    }
    public void setOpinionWords(String opinionWords) 
    {
        this.opinionWords = opinionWords;
    }

    public String getOpinionWords() 
    {
        return opinionWords;
    }
    public void setExclusionWords(String exclusionWords) 
    {
        this.exclusionWords = exclusionWords;
    }

    public String getExclusionWords() 
    {
        return exclusionWords;
    }
    public void setSourceType(String sourceType) 
    {
        this.sourceType = sourceType;
    }

    public String getSourceType() 
    {
        return sourceType;
    }
    public void setSourceId(Long sourceId) 
    {
        this.sourceId = sourceId;
    }

    public Long getSourceId() 
    {
        return sourceId;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public Integer getSuccess() {
        return success;
    }

    public void setSuccess(Integer success) {
        this.success = success;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createdTime", getCreatedTime())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("title", getTitle())
            .append("searchArea", getSearchArea())
            .append("relatedWords", getRelatedWords())
            .append("opinionWords", getOpinionWords())
            .append("exclusionWords", getExclusionWords())
            .append("sourceType", getSourceType())
            .append("sourceId", getSourceId())
            .append("status", getStatus())
            .toString();
    }
}
